package com.jms.web.controller.jms.controller;

import com.jms.common.core.controller.BaseController;
import com.jms.common.core.domain.AjaxResult;
import com.jms.web.controller.jms.service.IQuestionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/system/statistics")
public class statisticsController extends BaseController {

    @Resource
    private IQuestionService questionService;

    /**
     * 获取统计列表
     */
    @GetMapping("/getStatistics")
    public AjaxResult list()
    {
       return questionService.getStatistics();
    }
}
